package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName book_copy
 */
@TableName(value ="book_copy")
@Data
public class BookCopy implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联的图书ID
     */
    private Long bookId;

    /**
     * 入库日期
     */
    private Date stockDate;

    /**
     * 0:在馆, 1:借出, 2:丢失, 3:维修
     */
    private Integer bookCopyStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}